package cn.itcast.protocol.xt;

import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

public class IoTProtocolFrameDecoder extends LengthFieldBasedFrameDecoder {

    // bytes.length - lengthFieldLength = bytes[lengthFieldOffset, lengthFieldOffset+lengthFieldLength] + lengthFieldOffset + lengthAdjustment
    public IoTProtocolFrameDecoder() {
        // 封装解码器
        this(1024, 7, 4, 0, 0);
    }

    public IoTProtocolFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip);
    }
}
